package com.supermap.originTest2;


public class TestCOGTIFF {

    /**
     * 程序入口点
     * The entrance of the programme.
     */
    public static void main(String[] args) {

//		Workspace workspace = new Workspace();
//		WorkspaceConnectionInfo conInfo = new WorkspaceConnectionInfo(
//				"E:\\MapData\\202404\\WorkSpace.smwu");
//		conInfo.setType(WorkspaceType.SMWU);
//		workspace.open(conInfo);
//		Datasource d = workspace.getDatasources().get("geotest");
//		DatasetImage datasetImage = (DatasetImage)d.getDatasets().get("xuyi2m_clip1");
//		DatasetImage datasetImage2 = (DatasetImage)d.getDatasets().get("xuyi2m_clip1_1");
//
//
//		System.out.println("datasetImage创建金字塔成功："+datasetImage.hasPyramid());
//		System.out.println("datasetImage2创建金字塔成功："+datasetImage2.hasPyramid());
//		boolean a = datasetImage.buildPyramid(ResamplingMethod.AVERAGE, true);
//
//
//		boolean b =datasetImage2.buildPyramid(ResamplingMethod.AVERAGE);
//
//		System.out.println("datasetImage创建金字塔成功："+a);
//		System.out.println("datasetImage2创建金字塔成功："+b);
//
//		System.out.println("datasetImage创建金字塔成功："+datasetImage.hasPyramid());
//		System.out.println("datasetImage2创建金字塔成功："+datasetImage2.hasPyramid());
//
//
//		datasetImage.dispose();
//		datasetImage2.dispose();
//		workspace.save();
//		workspace.dispose();





	}


}  

